package com.example.contadorcomida;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class EstadisticasActivity extends Activity{
	private EstadisticasBaseDeDatos estadistica = new EstadisticasBaseDeDatos(); 
	
	public void miPizzaFavorita(){
		TextView textViewTotal = (TextView) findViewById(R.id.countPizzasQueMasComi);
		textViewTotal.setText( String.valueOf(estadistica.miPizzaFavorita(this)) );
	
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.estadistica_main); 
		
		miPizzaFavorita(); 
	}
}
